package com.gxa.autoparts.admin.mapper;

import com.gxa.autoparts.core.pojo.Order;
import com.gxa.autoparts.core.pojo.User;
import tk.mybatis.mapper.common.Mapper;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderMapper extends Mapper<Order> {
    List<Map> selectOrderAndUser(Integer page, Integer size);
    List<Map> selectOrderAndUserBy(String seriaLnNumber, String time1,String time2,Integer page,Integer size);
    List<Map> selectOrderAndUserAll();
    List<Map> selectOrderAndUserByAll(String seriaLnNumber, String time1,String time2);

    List<Map> selectAllOrder(String seriaLnNumber, String state, String userName, String phone,
                       String time1, String time2, Integer page, Integer size);
    Map selectOrderById(Long id);
    List<Map> selectGoodsById(Long id);
    List<Map> selectAllOrder2(String seriaLnNumber, String state, String userName, String phone,
                             String time1, String time2);
    Order getStateBySerial(Long serial);


}
